package com.wu.llpsw.event;


import net.minecraft.world.entity.player.Player;
import net.minecraftforge.event.entity.player.PlayerEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
@Mod.EventBusSubscriber(modid = "wu")
public class ChangedDimension {


    //玩家切换维度触发
    @SubscribeEvent
    public static void onPlayerEatFood(PlayerEvent.PlayerChangedDimensionEvent event) {
        // 在玩家重生时触发的逻辑
        Player player=event.getPlayer();
    }
}
